home *** CD-ROM | disk | FTP | other *** search
- Uses Crt;
-
- Procedure Col (f,b: integer); {Replacement for TextColor/textbackground}
- Begin {This is when you're using HIGH intense}
- TextAttr:=f+16*b; {Background colors.}
- end;
-
- Procedure Intense(s: string);
- Var
- I : Integer;
-
- Begin
- for i := 1 to Length(s) do s[i] := UpCase(s[i]);
- if s='HIGH' then
- begin
- Asm
- mov ax, 1003h
- mov bl, 00h {High intense Background Colors}
- mov bh, 00h
- int 10h
- end;
- end
- else
- begin
- Asm
- mov ax, 1003h
- mov bl, 01h {Blink Enabled / Normal}
- mov bh, 00h
- int 10h
- end;
- end;
- end;
-
- Begin
- Intense('High');
- Col (15,12);
- ClrScr;
- WriteLn ('Hi there! Now we have High Intense Background colors!');
- WriteLn;
- WriteLn ('And when you press a key, we have low intense background colors!');
- readkey;
- Intense ('Low');
- Textcolor (31);
- TextBackground (4);
- ClrScr;
- WriteLn ('Isn''t that coool????');
- WriteLn;
- TextColor (14);
- WriteLn ('Call Ultimate Force HQ for more programs!');
- WriteLn ('+31-30-287842, speeds up to 28800bps!');
- readkey;
- end.